home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!PRIMDOM-Message_Server
- From: mello.med@shands.ufl.edu
- Newsgroups: comp.sys.cbm
- Subject: CHRGET routine on the C=64
- Date: Wed, 31 Jan 1996 07:37:08 -0500
- Message-ID: <s10f1bfd.037@shands.ufl.edu>
- X-NNTP-Posting-Host: PRIMDOM-Message_Server
- X-Mailer: WordPerfect Office 4.0
- X-Mail2News-Path: shands.ufl.edu!PRIMDOM-Message_Server
-
- I want to incorporate some of my own routines into BASIC. The
- C=64 Programmer Reference Guide is not much help. This is all I
- could find on it:
-
- CHRGET routine is used by BASIC to get each character/token.
- This makes it simple to add new BASIC commands.... A common way
- to use this method is to specify a character (@ for example)
- which will occur before any of the new commands. The new CHRGET
- routine will search for the special character. If none if
- present, control is passed to the normal BASIC CHRGET routine.
- If the special character is present, the new command is
- interpreted and executed by your machine language program. This
- minimizes the extra execution time added by the need to search
- for additional commands. This technique is often called a wedge.
-
- Now, I understand this means that when you RUN a program, CHRGET
- will search the BASIC RAM and look for your special symbol in
- addition to all the regular commands. Is this a correct
- assumption? My question is: (1) How do I change the vector
- from the normal CHRGET routine to point to my CHRGET routine to
- search through RAM for my @ of whatever else it will be. (2)
- Where in memory do I store my CHRGET routine and the routine
- after the @ to be executed.
-
- Any help with this problem would be greatly appreciated :-)
-
- If you could please respond by e-mail to mello.med@shands.ufl.edu
- because I don't have access to a newsreader as of yet.
-
- Thanks
-
- Steve M.
-
-
-